package com.kgc.smbms.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    //用户id
    private Integer id;
    //用户编码
    private String userCode;
    //用户姓名
    private String userName;
    //用户密码
    private String userPassword;
    //用户性别
    private int gender;
    //用户生日
    private Date birthday;
    //用户电话
    private String phone;
    //用户地址
    private String address;
    //用户角色
    private Integer userRole;
    //创建者
    private Integer createdBy;
    //创建时间
    private Date creationDate;
    //更新者
    private Integer modifyBy;
    //更新时间
    private Date modifyDate;

    private String picPath;

    private String workPicPath;
    //用户角色名称：
    private  String  userRoleName;

    private Role role;

    private Integer age;

    /*public void setBirthday(Date birthday){
        this.birthday = birthday;
        this.age = DateTools.birthdayToAge(birthday);
    }*/
}
